package com.zhang.network.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author zhang
 * @since 2021-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Recommend对象", description = "")
public class Recommend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "推荐人")
    private Integer userId;

    @ApiModelProperty(value = "推荐人昵称")
    private String reference;

    @ApiModelProperty(value = "推荐人与被推荐人的人脉等级")
    private Integer recommendRank;

    @ApiModelProperty(value = "推荐人与指向人的人脉等级")
    private Integer toRank;

    @ApiModelProperty(value = "被推荐人")
    private Integer recommendId;

    @ApiModelProperty(value = "指向人")
    private Integer friendId;

    @ApiModelProperty(value = "状态 1-有效 0-失效")
    @TableLogic
    private Integer status;


}
